<?php

namespace App\Trip\Plane;

use App\Trip\Enums\Plane\PlaneTypes;

class PlaneTypeName
{
    /**
     * 机型名称
     * @param string $plane_type_name
     * @return string
     */
    static function getPlaneTypeName(string $plane_type_name): string
    {
        if ('巴西航空' == mb_substr($plane_type_name, 0, 4)) {
            return PlaneTypes::BA_GONG->value;
        }
        return mb_substr($plane_type_name, 0, 2);
    }
}